import Link from 'next/link'
import { useState } from 'react'
import Router from 'next/router'
import '../static/style/components/footer.less'
import { BackTop } from 'antd'

const Footer = () => {
  const [webInfo, setWebInfo] = useState({
    siti: 'Cat享',
    slogan: '享你所想',
    slogan2: 'Enjoy what you want',
    logo: ''
  })
  const goPage = ({ key }) => {
    // console.log(path)
    Router.push(key)
  }
  return (
    <>
      <footer className='footer'>
        <div className='copyright'>
          Copyright © 2020 by <Link href='/'>{webInfo.siti}</Link> . All rights reserved.{' '}
        </div>
        <div className='slogan-two'>{webInfo.slogan2}</div>
        <BackTop></BackTop>
      </footer>
    </>
  )
}

export default Footer
